package com.person.consumerserver.service;

import com.person.consumerserver.service.impl.FeignServiceHystric;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @PackageName:com.person.consumerserver.service
 * @ClassName: FeignService
 * @Description:
 * @author: Du Xiaobo
 * @date: 2020/1/16 15:45
 */
@FeignClient(value = "sso-server",fallback = FeignServiceHystric.class )
public interface FeignService {

    @RequestMapping(value = "/sso/hi",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
